import {Md5} from "ts-md5/dist/md5"
/**
	保存用户名密码
*/
export class Login{
	account:string;
	password:string;

	constructor(account:string,password:string){
		this.account=account;
		this.password=password;
	}
	/**
		对密码进行MD5加密
	*/
	md5Password():void{
		this.password.length!==32&&(this.password=Md5.hashStr(this.password).toString());		
	}


}